package com.hhsjdesign.dynamicui.core.widgetdata

import com.hhsjdesign.dynamicui.annoprocess.ADynamicUI
import com.hhsjdesign.dynamicui.annoprocess.AWidgetData
import com.hhsjdesign.dynamicui.core.property.widget.GridHWidgetProperty
import com.hhsjdesign.dynamicui.core.property.widget.ISpecPropertyTransformer
import org.json.JSONObject

/**
 * 横向滚动gridview组件数据
 * HorizontalGridLayoutProperty
 */
@ADynamicUI
@AWidgetData(WidgetTypeConst.GRID_HORIZONTAL)
open class GridHWidgetData (jo: JSONObject) : WidgetData(jo),
    ISpecPropertyTransformer<GridHWidgetProperty> {

    override fun transformWidgetSpecProperty(): GridHWidgetProperty {
        return specProperty as GridHWidgetProperty
    }

}